from django.shortcuts import render
from django.http import HttpResponse as response
from user.models import *


# 视图函数view
def index(request):
    return response("hello world!")


def get_user(request):
    # 模型操作,获取所有user
    users = UserModel.objects.all()
    return render(request, "users.html", {"users": users})
